<div class="pageheader">
            <h1 class="pagetitle">资料编辑</h1>
            <span class="pagedesc"></span>
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper">
        	
        	<div id="basicform" class="subcontent">
                    
					<form class="stdform stdform2" id="userpassword" >
                    	<p>
                        	<label>原密码</label>
                            <span class="field"><input type="password" name="passwordyuan" id="firstname2" class="longinput" /></span>
                        </p>
                        
                        <p>
                        	<label>新密码</label>
                            <span class="field"><input type="password" name="password" id="lastname2" class="longinput"   /></span>
                        </p>

						<p>
                        	<label>确认密码</label>
                            <span class="field"><input type="password" name="password1" id="lastname2" class="longinput"  /></span>
                        </p>
                        
                        <p class="stdformbutton">
                        	<input name="id" type="hidden" value="${admin.id!''}"/>
                        	<button class="submit radius2">确定</button>
                        </p>
                    </form>
					
                    <br />

            </div><!--subcontent-->
<script type="text/javascript" src="${request.contextPath}/public/js/custom/forms.js"></script>
<script>
	
	function passwordUpdate(){
	     jQuery.ajax({  
	          url: '${request.contextPath}/admin/updatePassword' ,  
	          type: 'POST',  
				data:jQuery("#userpassword").serialize(),
	          success: function (returndata) {  
	              if(returndata=="saveerror"){
	              		alert("保存失败");
	              }else if(returndata=="success"){
	              	alert("保存成功");
	              }else if(returndata=="pwderror"){
	              	alert("密码错误");
	              }
	          },  
	          error: function (returndata) {  
	              alert(returndata);  
	          }  
	     });  
	}
</script>